//
//  LocalDataManager.h
//  rxtd_xfd
//  处理一些储存在本地的数据
//  Created by clq on 15/4/15.
//  Copyright (c) 2015年 clq. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LocalDataManager : NSObject

+(LocalDataManager*) sharedLocalDataManager;

// 对NSUserDefaults的处理方法 写入/读取/移出
-(void)setObjectWithNSUserDefaults:(id)val forUsername: (NSString *)key;
-(id)getObjectWithNSUserDefaults:(NSString *)key;
-(void)removeObjectWithNSUserDefaults:(NSString *)key;


-(void) removeObjectWithNSUserDefaultsForBase64:(NSString *)keyBase64;

//获取document路径
- (NSString *)getDocumentsPath;

- (UIImage *)getImageWithName:(NSString *)fileName directoryName:(NSString *)directoryName;

- (NSString *)getFilePathFromDocument:(NSString *)fileNname directoryName:(NSString *)directoryName;

//存储图片到指定文件的路径
- (BOOL)saveImage:(UIImage *)image directoryName:(NSString *)directoryName imageName:(NSString *)imageName compressionQuality:(CGFloat)compressionQuality;


@end

